package com.gongpingjialoan.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2016/6/22.
 */
public class RecordBean {

    /**
     * status : success
     * msg : message
     * data : {"vip_buy":[{"push_setting":"im","uses":["商用"],"end_time":"","price_h":"10.0","start_time":"","vehicle_model":["small_car","compact_car","middle_car","middle_super_car"],"price_l":"5.0","other_recommend":["提速快"],"id":"15877"}],"price_change_reminds":[{"domain":"58同城","model_slug":"shijia-sanxiang","has_model_detail":"yes","last_price":"4.68","mile":"3.00","pub_timestamp":"1465547285","year":"2010","id":56330667,"brand_slug":"citroen","gpj_index":"10.0","city":"南京","pub_time":"06-10","title":"雪铁龙 世嘉 2010款 世嘉[两厢 1.6 手自一体 尚乐版]","qs_tags":"","lowest_price":"4.68","thumbnail":"http://gongpingjia.qiniudn.com/img/5fa2646900eaa8a458d73794cdeee4c33a55695a","price":"4.68","car_tag":"dealer","model_slug_zh":"雪铁龙世嘉","source_type":"personal","model_detail_slug_zh":"2010款 1.6L 自动 尚乐版","dealer_category":"","origin_price":"4.88","time":"6月10日","is_certify":false,"car_id":56330667,"brand_slug_zh":"雪铁龙"}],"help_find_car":[{"control":"","price_ranges":[["",""]],"push_setting":"im","volume_ranges":[["",""]],"year_ranges":[["5",""]],"brand_model_zh":"","id":22332}]}
     */

    private String status;
    private String msg;
    private DataEntity data;

    public void setStatus(String status) {
        this.status = status;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    public DataEntity getData() {
        return data;
    }

    public static class DataEntity {
        /**
         * push_setting : im
         * uses : ["商用"]
         * end_time :
         * price_h : 10.0
         * start_time :
         * vehicle_model : ["small_car","compact_car","middle_car","middle_super_car"]
         * price_l : 5.0
         * other_recommend : ["提速快"]
         * id : 15877
         */

        private List<VipBuyEntity> vip_buy;
        /**
         * domain : 58同城
         * model_slug : shijia-sanxiang
         * has_model_detail : yes
         * last_price : 4.68
         * mile : 3.00
         * pub_timestamp : 1465547285
         * year : 2010
         * id : 56330667
         * brand_slug : citroen
         * gpj_index : 10.0
         * city : 南京
         * pub_time : 06-10
         * title : 雪铁龙 世嘉 2010款 世嘉[两厢 1.6 手自一体 尚乐版]
         * qs_tags :
         * lowest_price : 4.68
         * thumbnail : http://gongpingjia.qiniudn.com/img/5fa2646900eaa8a458d73794cdeee4c33a55695a
         * price : 4.68
         * car_tag : dealer
         * model_slug_zh : 雪铁龙世嘉
         * source_type : personal
         * model_detail_slug_zh : 2010款 1.6L 自动 尚乐版
         * dealer_category :
         * origin_price : 4.88
         * time : 6月10日
         * is_certify : false
         * car_id : 56330667
         * brand_slug_zh : 雪铁龙
         */

        private List<PriceChangeRemindsEntity> price_change_reminds;
        /**
         * control :
         * price_ranges : [["",""]]
         * push_setting : im
         * volume_ranges : [["",""]]
         * year_ranges : [["5",""]]
         * brand_model_zh :
         * id : 22332
         */

        private List<HelpFindCarEntity> help_find_car;

        public void setVip_buy(List<VipBuyEntity> vip_buy) {
            this.vip_buy = vip_buy;
        }

        public void setPrice_change_reminds(List<PriceChangeRemindsEntity> price_change_reminds) {
            this.price_change_reminds = price_change_reminds;
        }

        public void setHelp_find_car(List<HelpFindCarEntity> help_find_car) {
            this.help_find_car = help_find_car;
        }

        public List<VipBuyEntity> getVip_buy() {
            return vip_buy;
        }

        public List<PriceChangeRemindsEntity> getPrice_change_reminds() {
            return price_change_reminds;
        }

        public List<HelpFindCarEntity> getHelp_find_car() {
            return help_find_car;
        }

        public static class VipBuyEntity implements Parcelable {
            private String push_setting;
            private String end_time;
            private String price_h;
            private String start_time;
            private String price_l;
            private int id;
            private String vip_buy_type;
            private String expect_period;
            private String price;
            private List<String> brand_model_zhs;
            private List<String> uses;
            private List<String> vehicle_model;
            private List<String> other_recommend;



            public String getType() {
                return vip_buy_type;
            }

            public void setType(String type) {
                this.vip_buy_type = type;
            }

            public String getExpect_period() {
                return expect_period;
            }

            public void setExpect_period(String expect_period) {
                this.expect_period = expect_period;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public List<String> getModels() {
                return brand_model_zhs;
            }

            public void setModels(List<String> models) {
                this.brand_model_zhs = models;
            }

            public void setPush_setting(String push_setting) {
                this.push_setting = push_setting;
            }

            public void setEnd_time(String end_time) {
                this.end_time = end_time;
            }

            public void setPrice_h(String price_h) {
                this.price_h = price_h;
            }

            public void setStart_time(String start_time) {
                this.start_time = start_time;
            }

            public void setPrice_l(String price_l) {
                this.price_l = price_l;
            }

            public void setId(int id) {
                this.id = id;
            }

            public void setUses(List<String> uses) {
                this.uses = uses;
            }

            public void setVehicle_model(List<String> vehicle_model) {
                this.vehicle_model = vehicle_model;
            }

            public void setOther_recommend(List<String> other_recommend) {
                this.other_recommend = other_recommend;
            }

            public String getPush_setting() {
                return push_setting;
            }

            public String getEnd_time() {
                return end_time;
            }

            public String getPrice_h() {
                return price_h;
            }

            public String getStart_time() {
                return start_time;
            }

            public String getPrice_l() {
                return price_l;
            }

            public int getId() {
                return id;
            }

            public List<String> getUses() {
                return uses;
            }

            public List<String> getVehicle_model() {
                return vehicle_model;
            }

            public List<String> getOther_recommend() {
                return other_recommend;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.push_setting);
                dest.writeString(this.end_time);
                dest.writeString(this.price_h);
                dest.writeString(this.start_time);
                dest.writeString(this.price_l);
                dest.writeInt(this.id);
                dest.writeString(this.vip_buy_type);
                dest.writeString(this.expect_period);
                dest.writeString(this.price);
                dest.writeStringList(this.brand_model_zhs);
                dest.writeStringList(this.uses);
                dest.writeStringList(this.vehicle_model);
                dest.writeStringList(this.other_recommend);
            }

            public VipBuyEntity() {
            }

            protected VipBuyEntity(Parcel in) {
                this.push_setting = in.readString();
                this.end_time = in.readString();
                this.price_h = in.readString();
                this.start_time = in.readString();
                this.price_l = in.readString();
                this.id = in.readInt();
                this.vip_buy_type = in.readString();
                this.expect_period = in.readString();
                this.price = in.readString();
                this.brand_model_zhs = in.createStringArrayList();
                this.uses = in.createStringArrayList();
                this.vehicle_model = in.createStringArrayList();
                this.other_recommend = in.createStringArrayList();
            }

            public static final Parcelable.Creator<VipBuyEntity> CREATOR = new Parcelable.Creator<VipBuyEntity>() {
                public VipBuyEntity createFromParcel(Parcel source) {
                    return new VipBuyEntity(source);
                }

                public VipBuyEntity[] newArray(int size) {
                    return new VipBuyEntity[size];
                }
            };
        }

        public static class PriceChangeRemindsEntity {
            private String domain;
            private String model_slug;
            private String has_model_detail;
            private String last_price;
            private String mile;
            private String pub_timestamp;
            private String status;
            private String year;
            private int id;
            private String brand_slug;
            private String gpj_index;
            private String city;
            private String pub_time;
            private String title;
            private String qs_tags;
            private String lowest_price;
            private String thumbnail;
            private String price;
            private String car_tag;
            private String model_slug_zh;
            private String source_type;
            private String model_detail_slug_zh;
            private String dealer_category;
            private String origin_price;
            private String time;
            private boolean is_certify;
            private int car_id;
            private String brand_slug_zh;

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public boolean is_certify() {
                return is_certify;
            }

            public void setDomain(String domain) {
                this.domain = domain;
            }

            public void setModel_slug(String model_slug) {
                this.model_slug = model_slug;
            }

            public void setHas_model_detail(String has_model_detail) {
                this.has_model_detail = has_model_detail;
            }

            public void setLast_price(String last_price) {
                this.last_price = last_price;
            }

            public void setMile(String mile) {
                this.mile = mile;
            }

            public void setPub_timestamp(String pub_timestamp) {
                this.pub_timestamp = pub_timestamp;
            }

            public void setYear(String year) {
                this.year = year;
            }

            public void setId(int id) {
                this.id = id;
            }

            public void setBrand_slug(String brand_slug) {
                this.brand_slug = brand_slug;
            }

            public void setGpj_index(String gpj_index) {
                this.gpj_index = gpj_index;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public void setPub_time(String pub_time) {
                this.pub_time = pub_time;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public void setQs_tags(String qs_tags) {
                this.qs_tags = qs_tags;
            }

            public void setLowest_price(String lowest_price) {
                this.lowest_price = lowest_price;
            }

            public void setThumbnail(String thumbnail) {
                this.thumbnail = thumbnail;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public void setCar_tag(String car_tag) {
                this.car_tag = car_tag;
            }

            public void setModel_slug_zh(String model_slug_zh) {
                this.model_slug_zh = model_slug_zh;
            }

            public void setSource_type(String source_type) {
                this.source_type = source_type;
            }

            public void setModel_detail_slug_zh(String model_detail_slug_zh) {
                this.model_detail_slug_zh = model_detail_slug_zh;
            }

            public void setDealer_category(String dealer_category) {
                this.dealer_category = dealer_category;
            }

            public void setOrigin_price(String origin_price) {
                this.origin_price = origin_price;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public void setIs_certify(boolean is_certify) {
                this.is_certify = is_certify;
            }

            public void setCar_id(int car_id) {
                this.car_id = car_id;
            }

            public void setBrand_slug_zh(String brand_slug_zh) {
                this.brand_slug_zh = brand_slug_zh;
            }

            public String getDomain() {
                return domain;
            }

            public String getModel_slug() {
                return model_slug;
            }

            public String getHas_model_detail() {
                return has_model_detail;
            }

            public String getLast_price() {
                return last_price;
            }

            public String getMile() {
                return mile;
            }

            public String getPub_timestamp() {
                return pub_timestamp;
            }

            public String getYear() {
                return year;
            }

            public int getId() {
                return id;
            }

            public String getBrand_slug() {
                return brand_slug;
            }

            public String getGpj_index() {
                return gpj_index;
            }

            public String getCity() {
                return city;
            }

            public String getPub_time() {
                return pub_time;
            }

            public String getTitle() {
                return title;
            }

            public String getQs_tags() {
                return qs_tags;
            }

            public String getLowest_price() {
                return lowest_price;
            }

            public String getThumbnail() {
                return thumbnail;
            }

            public String getPrice() {
                return price;
            }

            public String getCar_tag() {
                return car_tag;
            }

            public String getModel_slug_zh() {
                return model_slug_zh;
            }

            public String getSource_type() {
                return source_type;
            }

            public String getModel_detail_slug_zh() {
                return model_detail_slug_zh;
            }

            public String getDealer_category() {
                return dealer_category;
            }

            public String getOrigin_price() {
                return origin_price;
            }

            public String getTime() {
                return time;
            }

            public boolean isIs_certify() {
                return is_certify;
            }

            public int getCar_id() {
                return car_id;
            }

            public String getBrand_slug_zh() {
                return brand_slug_zh;
            }
        }

        public static class HelpFindCarEntity {
            private List<String> control;
            private String push_setting;
            private String brand_model_zh;
            private int id;
            private List<List<String>> price_ranges;
            private List<List<String>> volume_ranges;
            private List<List<String>> year_ranges;

            public void setControl(List<String> control) {
                this.control = control;
            }

            public void setPush_setting(String push_setting) {
                this.push_setting = push_setting;
            }

            public void setBrand_model_zh(String brand_model_zh) {
                this.brand_model_zh = brand_model_zh;
            }

            public void setId(int id) {
                this.id = id;
            }

            public void setPrice_ranges(List<List<String>> price_ranges) {
                this.price_ranges = price_ranges;
            }

            public void setVolume_ranges(List<List<String>> volume_ranges) {
                this.volume_ranges = volume_ranges;
            }

            public void setYear_ranges(List<List<String>> year_ranges) {
                this.year_ranges = year_ranges;
            }

            public List<String> getControl() {
                return control;
            }

            public String getPush_setting() {
                return push_setting;
            }

            public String getBrand_model_zh() {
                return brand_model_zh;
            }

            public int getId() {
                return id;
            }

            public List<List<String>> getPrice_ranges() {
                return price_ranges;
            }

            public List<List<String>> getVolume_ranges() {
                return volume_ranges;
            }

            public List<List<String>> getYear_ranges() {
                return year_ranges;
            }
        }
    }
}
